package cn.village.controller;

import cn.village.entity.JunctionContract;
import cn.village.service.JunctionContractService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * (JunctionContract)表控制层
 *
 * @author makejava
 * @since 2021-02-10 15:33:58
 */
@RestController
@RequestMapping("junctionContract")
public class JunctionContractController {
    /**
     * 服务对象
     */
    @Resource
    private JunctionContractService junctionContractService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public JunctionContract selectOne(Integer id) {
        return this.junctionContractService.queryById(id);
    }

}